import network
import machine
import socket
import utime
from machine import Pin

led = Pin("LED",Pin.OUT)
wifi_ssid="NETGEAR23"
wifi_pass="123456"
wifi=network.WLAN(network.STA_IF)
wifi.active(True)

wifi.connect(wifi_ssid,wifi_pass)

while not wifi.isconnected():
    led.value(1)
    utime.sleep(1)
    led.value(0)
    utime.sleep(1)
    pass

print("WIFI已链接")
#板载温度
temp_pin = machine.ADC(4)
print(27-((temp_pin.read_u16() * (3.3/65535))-0.706)/0.001721)
